<h1>Review Types</h1>
<p id="notice"><%= notice %></p>

<%= link_to 'Create Review Type', new_review_type_path %>
<table>
  <tr>
    <th>Name</th>
    <th>Title</th>
    <th></th>
    <th></th>
  </tr>

<% @review_types.each do |review_type| %>
  <tr>
    <td><%= review_type.name %></td>
    <td><%= review_type.title %></td>
    <td><%= link_to 'Delete', review_type, confirm: 'Are you sure you want to delete "'+review_type.title+'" and all its reviews?', method: :delete %></td>
    <td><%= link_to 'View Reviews', review_type_reviews_path(review_type) %></td>
  </tr>
<% end %>
</table>
